package com.jsong.linuo.controlstructure;

/*
    1.循环之中有循环
    1.执行流程:
       先执行外层循环,再进入内层循环,内层循环就一直循环,直到内层循环结束,外层循环都结束,整体结束
 */
public class NestTest {
    public static void main(String[] args) {
       /* for (int fen = 0; fen < 60; fen++) {
            for (int miao = 0; miao < 60; miao++) {
                System.out.println(fen+"分"+miao+"秒");
            }
        }

        */

        //打印图形

        for (int i = 0; i < 5; i++) {
            //外层循环控制行
            for (int j = 0; j < 5; j++) {
                //内层循环控制列
                System.out.print("* ");
            }
            System.out.println();
        }

        //打印直角三角形
        for (int i = 1; i < 5; i++) {
            for (int j = 0; j < i; j++) {
                System.out.print("* ");
            }
            System.out.println();
        }
    }
}
